<?php
$pid = pcntl_fork();
if ($pid>0){
    cli_set_process_title("php father process");
    sleep(60);
}else if($pid==0){
     cli_set_process_title("php child process");
     sleep(10);
}else{
    exit("fork error".PHP_EOL);
}
